﻿@model Lion.WeiXin.Core.Models.NewsModel
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section ChildPageJs {
    <link rel="stylesheet" href="/Kindeditor/themes/default/default.css" />
    <style>
        .news-list{border:1px solid #ccc;padding:2px;}
        .news-first{border-bottom:1px solid #ccc;padding:4px 4px 4px 4px;height:160px;}
        .news-first img{height:80%;width:100%;}
        .news-item{border-bottom:1px solid #ccc;padding:4px 4px 4px 4px;height:90px;}
        .news-item img{float:right;height:100%;width:80px;vertical-align:central}
        .news-list li:hover{background-color:#9eabfa;opacity:0.3;cursor:pointer;}
    </style>
    <script charset="utf-8" src="/Kindeditor/kindeditor-min.js"></script>
  @*  <script charset="utf-8" src="/Kindeditor/kindeditor.js"></script> *@
    <script charset="utf-8" src="/Kindeditor/lang/zh_CN.js"></script>
    <script src="/Scripts/App_Scripts/NewsCreate.js" type="text/javascript"></script>
}
<form id="fmSave" name="fmSave" method="post" >
    <div class="titstyle01 clearfix">
        <strong>添加图文</strong>
    </div>
    <div class="boxstyle01 clearfix pt25 pb10 pl10">
        <!--预览区-->
        <div id="PriviewRegion" class="boxstyle33 f_l pt25 pb10 pl10 pr10 mr10">
            <ul id="newsList" class="news-list" data-id="1">
                <li class="news-first" data-id="1">
                    <img src="http://img3.cache.netease.com/cnews/2015/2/28/20150228183208e7f17.jpg" alt=""/>
                    <strong>标题</strong>                                      
                </li>
                <li class="news-item" data-id="2">
                    <img src="http://img3.cache.netease.com/cnews/2015/2/28/20150228183208e7f17.jpg" alt=""/>
                    <strong>标题</strong>                  
                    <p>内容描述</p>                    
                </li>
                <li class="news-item" data-id="3">   
                    <img src="http://s.cimg.163.com/cnews/2015/3/2/2015030208375608fd4_550.png.119x83.jpg" alt=""/>
                    <strong>标题</strong>                  
                    <p>内容描述</p>                  
                </li>                
            </ul>
            <div>       
                    <input type="button" value="添 加" class="btn02 f_l m15" id="btnADD" />
                    <input type="submit" value="发送预览" class="btn02 f_l m15" id="btnPreview" />    
             </div>
        </div>
        <!--编辑区-->
        <div id="EditRegion" class="boxstyle66 f_l pt25 pb10 pl10 pr10 mr10">
            <table id="tbl" class="table100">            
            <tr align="left">
                <th>
                    <span class="cf60">*</span>@Html.Label("Title", "标题")：
                </th>
                <td>
                     <input type="hidden" id="Action" name="Action" value="Create" />
                    <input type="hidden" id="NewsID" name="NewsID" value="0"/>
                    <input type="hidden" id="AID" name="AID" value="0"/>
                    <input type="text" id="Title" name="Title" class="slcw120s f_l m5" />
                </td>
            </tr> 
            <tr align="left">
                <th>
                    <span class="cf60"></span>@Html.Label("Image", "封面")：
                </th>
                <td>
                    <span>（大图片建议尺寸：900像素 * 500像素，小图建议 200像素 * 200像素）</span>
                     <div>
                    <input type="text" id="Image" name="Image" class="slcw180 f_l m5" readonly="true" />
                     <input type="button" id="image3" class="btn02 f_l m15" value="浏览..." />
                        </div>
                    <div class="clear">
                    <img id="imgPic" style="display:none;width:350px;height:200px;" src="#" />
                    </div>
                </td>
            </tr>                      
             <tr align="left">
                <th>
                    <span class="cf60"></span>@Html.Label("Summary", "摘要")：
                </th>
                <td>
                     <textarea style="height: 50px;" cols="10" rows="20" class="slcw120s f_l m5" id="Summary" name="Summary"></textarea>
                </td>
            </tr>
             
             <tr align="left">
                <th>
                    <span class="cf60"></span>正文：
                </th>
                <td>
                    <textarea  style="width:90%;height:350px;" id="Content" name="Content"></textarea>
                </td>
            </tr>
            <tr align="left">
                <th>
                    <span class="cf60">*</span>@Html.Label("Url", "原文链接")：
                </th>
                <td>
                    <input type="text" id="Url" name="Url" class="slcw120s f_l m5" />
                </td>
            </tr> 
            <tr>
                <td colspan="2" align="center">
                    <input type="submit" value="确 定" class="btn02 f_l m15" id="btnSave" />
                    <input type="button" class="btn02 f_l m15" id="btnDelete" value="删 除" />
                    <input type="button" class="btn02 f_l m15" id="btnCancel" value="取 消" />
                    
                </td>
            </tr>
        </table>
        </div>        
    </div>
</form>


